package com.livesource.client.web.liveSource;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.livesource.client.LiveSourceGlobalVariables;
import com.livesource.client.web.project.ProjectForm;

/**
 * 
 * @UserManual
 */
public class ButtonProjectInfo extends Button {

	public ButtonProjectInfo() {

		this.setText("Project Info");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				LiveSourceGlobalVariables.showPanel.clear();
				LiveSourceGlobalVariables.showPanel.add(new ProjectForm(
						LiveSourceGlobalVariables.currentProject));
			}
		});
	}
}